<template>
  <div class="dynamic-component">
    dynamic component demo
  </div>
</template>

<script>
/*

Dynamic component

use demo:
  delay:
    components: {
      'async-demo-timeout': resolve => {
        setTimeout(() => {
          // 可以单独打包
          require(['@/components/Dynamic'], resolve)
        }, 3000)
      }
    }
  common:
    components: {
      'async-demo': resolve => {
        require(['@/components/Dynamic'], resolve)
      }
    }

 */
export default {}
</script>

<style scoped lang="stylus">
.dynamic-component
  color red
</style>
